from pwn import *
import struct

context(arch = 'i386', os = 'linux')

shell_addr = 0x080484eb

s = ssh('root', 'localhost', password='root', port=2222)
sh = s.process('/bin/sh', env={'PS1':''})

sh.sendline('whoami')

print(sh.recvline())


